package org.freedoit.common.data;

public class DefaultFreeDoitResponse implements FreeDoitResponse {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7071556632899529617L;

	private int code;
	private long timestamp;

	public DefaultFreeDoitResponse() {
	}

	public DefaultFreeDoitResponse(int code) {
		this(code, System.currentTimeMillis());
	}
	
	public DefaultFreeDoitResponse(int code, long timestamp) {
		this.code = code;
		this.timestamp = timestamp;
	}
	
	public int getCode() {
		return this.code;
	}
	
	public void setCode(int code) {
		this.code = code;
	}
	
	public long getTimestamp() {
		return this.timestamp;
	}
	
	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}
}
